package com.ftg.learn.framework.mybatis.javabase.service;

import com.ftg.learn.framework.mybatis.javabase.entity.StudentEntity;
import com.ftg.learn.framework.mybatis.javabase.mapper.StudentMapper;
import com.ftg.learn.framework.mybatis.javabase.util.MybatisUtil;

import java.util.List;

/**
 * 业务实现类
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/9/4 上午9:25
 */
public class StudentService  extends MybatisUtil {

    public List<StudentEntity> showall(){
        System.out.println(super.getSqlSession().getMapper(StudentMapper.class));

        return super.getSqlSession().getMapper(StudentMapper.class).showListWithParameter("男","张");
    }

}
